package cn.cena.controller;


import cn.cena.User;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.*;

import javax.sound.sampled.Port;

@RestController
public class UserController {

    @Value("${server.port}")
    private int port;

    @GetMapping("/getById/{id}")
    public User getUser(@PathVariable("id")Long id){
        return new User(id,"水电费","快交水电费:port"+port);
    }
}
